Skip to main content
Glama

Convex MCP server

Official
by get-convex
[[...projectPagePath]].tsx893 B
import { useLastCreatedProject } from "hooks/useLastCreated"; import { useLastViewedProject } from "hooks/useLastViewed"; import { withAuthenticatedPage } from "lib/withAuthenticatedPage"; import { useRouter } from "next/router"; import { useEffect } from "react"; export { getServerSideProps } from "lib/ssr"; export default withAuthenticatedPage(function RedirectToProjectPage() { const router = useRouter(); const { projectPagePath, ...query } = router.query; const path = ((projectPagePath ?? []) as string[]).join("/"); const [lastViewedProjectSlug] = useLastViewedProject(); const lastCreatedProject = useLastCreatedProject(); const project = lastViewedProjectSlug ?? lastCreatedProject?.slug; useEffect(() => { void router.replace( project === undefined ? "/" : { pathname: `/p/${project}/${path}`, query }, ); }); return null; });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server